import {get, post, del, put} from "../utils/request";

//会员登录
export function login(username, password) {
    return get('/member/login?username=' +username + '&password=' + password)
}

//会员退出登录
export function logout(token) {
    return get('/member/logout?token=' + token)
}

// 会员注册
export function register(data) {
    return post('/member/regist', data)
}

// 获取会员信息
export function getInfo(id) {
    return get('/member/getbyid/' + id)
}

//获取登录的会员
export function getCurrent() {
    return get('/member/getcurr')
}

//修改会员信息
export function EditUserInfo() {

}